﻿using System;
using System.Collections.Generic;
using System.Linq;

namespace Risk.Model
{
    public class Region
    {
        public List<String> NeighbourIds { get; private set; } 
        public string Id { get; private set; }
        public Continent Continent { get; private set; }

        public Region(String id, Continent continent, params String[] neighbourRegionIds)
        {
            Id = id;
            Continent = continent;
            Continent.Regions.Add(this);
            NeighbourIds = neighbourRegionIds.ToList();
        }
    }
}
